package vehicle;

public class Vehicle {
	private String name;
	private double speed;
	
	public Vehicle() {
		super();
	}
	public Vehicle(String name, double speed) {
		super();
		this.name = name;
		this.speed = speed;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getSpeed() {
		return speed;
	}
	public void setSpeed(double speed) {
		this.speed = speed;
	}
	
	// 求达到的时间
	public double getReachTime(double distance) {
		return 0;
	}
}
